package AJava1月.EJava第五周.练习题;

public class if自动驾驶03格式 {
    public static void main(String[] args){


        //判断红绿灯
        boolean isLightGreen = false;
        boolean isLightYellow = false;
        boolean isLightRed = true;

        if(isLightGreen){
            System.out.println("通行");
        }else if(isLightYellow){
            System.out.println("请注意");
        }else if(isLightRed){
            System.out.println("禁止通行🚥");
        }
    }

}


